package register

import "github.com/winksai/consul/consul"

func Consul() error {
	newConsul, err := consul.NewConsul("117.27.231.169", 8500)
	if err != nil {
		return err
	}
	err = newConsul.RegisterConsul("user_srv", "127.0.0.1", 50051, []string{})
	if err != nil {
		return err
	}
	return nil
}
